package com.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author Losca
 * @date 2022/4/29 12:38
 */
@Data
@TableName("product")
public class ProductEntity {
    private Integer id;
    private Integer chanpinid;
    private String name;
    private Integer count;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String machine;
    private String chanpinmingcheng;
}
